import request from '@/sheep/request';

export const saveUserInfo = (data) => {
  return request({
    url: '/digital/records/create',
    data: { dataJson: JSON.stringify(data) },
    method: 'post',
  });
};

export const getUserInfo = (params) => {
  return request({
    url: '/digital/records/get-by-user-id',
    params,
    method: 'get',
  });
};
